package com.sk.gzwater.view;

import com.sk.gzewop.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TableRow;

public class ShujuShangbaoQingkuang extends Activity {
	private TableRow shujutianbaoweiwancheng,shujushangbaoshenhewanchenglv,shujushangbaoshenhejishilv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.shujushangbaoqingkuang);
		initialize();
	}
	protected void initialize(){
		onClickEvent onclickEvent = new onClickEvent();
		shujutianbaoweiwancheng = (TableRow)findViewById(R.id.tr_shujutianbaoweiwanchengrenwu);
		shujushangbaoshenhewanchenglv = (TableRow)findViewById(R.id.tr_shujushangbaoshenhewanchenglv);
		shujushangbaoshenhejishilv = (TableRow)findViewById(R.id.tr_shujushangbaoshenhejishilv);
		shujutianbaoweiwancheng.setOnClickListener(onclickEvent);
		shujushangbaoshenhewanchenglv.setOnClickListener(onclickEvent);
		shujushangbaoshenhejishilv.setOnClickListener(onclickEvent);
	}
	private class onClickEvent implements OnClickListener{
		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			switch (v.getId()) {
			case R.id.tr_shujutianbaoweiwanchengrenwu:
				startActivity(new Intent(ShujuShangbaoQingkuang.this, ShujutianbaoWeiwanchengRenwu.class));
				break;
			case R.id.tr_shujushangbaoshenhewanchenglv:
				startActivity(new Intent(ShujuShangbaoQingkuang.this, ShujushangbaoShenheWanchenglv.class));
				break;
			case R.id.tr_shujushangbaoshenhejishilv:
				startActivity(new Intent(ShujuShangbaoQingkuang.this, ShujushangbaoShenheJishilv.class));	
				break;
			default:
				break;
			}
		}
		
	}
}
